<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: LutAccessor&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.05</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1_lut_accessor.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">LutAccessor&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classarm__compute_1_1test_1_1_accessor.xhtml" title="Accessor implementation for Tensor objects. ">Accessor</a> implementation for <a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> objects.  
 <a href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for LutAccessor&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1_lut_accessor__coll__graph.svg" width="151" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae99963d5a188fc22b0943680f9d463ad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#ae99963d5a188fc22b0943680f9d463ad">LutAccessor</a> (<a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> &amp;lut)</td></tr>
<tr class="memdesc:ae99963d5a188fc22b0943680f9d463ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an accessor for the given <code><a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a></code>.  <a href="#ae99963d5a188fc22b0943680f9d463ad">More...</a><br /></td></tr>
<tr class="separator:ae99963d5a188fc22b0943680f9d463ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8490a0e13403aa46250b736a3a9b1cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#ac8490a0e13403aa46250b736a3a9b1cc">LutAccessor</a> (const <a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;)=delete</td></tr>
<tr class="memdesc:ac8490a0e13403aa46250b736a3a9b1cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copy constructed.  <a href="#ac8490a0e13403aa46250b736a3a9b1cc">More...</a><br /></td></tr>
<tr class="separator:ac8490a0e13403aa46250b736a3a9b1cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab55c8a099bd3c9c705c22154375a1a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aab55c8a099bd3c9c705c22154375a1a2">operator=</a> (const <a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;)=delete</td></tr>
<tr class="memdesc:aab55c8a099bd3c9c705c22154375a1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied.  <a href="#aab55c8a099bd3c9c705c22154375a1a2">More...</a><br /></td></tr>
<tr class="separator:aab55c8a099bd3c9c705c22154375a1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1963ce09163dcfe7437106500bc2482d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#a1963ce09163dcfe7437106500bc2482d">LutAccessor</a> (<a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a1963ce09163dcfe7437106500bc2482d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow instances of this class to be move constructed.  <a href="#a1963ce09163dcfe7437106500bc2482d">More...</a><br /></td></tr>
<tr class="separator:a1963ce09163dcfe7437106500bc2482d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245b2a5255f1aa5d34a026cf7316d931"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#a245b2a5255f1aa5d34a026cf7316d931">operator=</a> (<a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a245b2a5255f1aa5d34a026cf7316d931"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow instances of this class to be moved.  <a href="#a245b2a5255f1aa5d34a026cf7316d931">More...</a><br /></td></tr>
<tr class="separator:a245b2a5255f1aa5d34a026cf7316d931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a> () const override</td></tr>
<tr class="memdesc:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of elements of the <a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a>.  <a href="#aedcfdd4c3b92fe0d63b5463c7ad1d21e">More...</a><br /></td></tr>
<tr class="separator:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a168d14b0e18a50b50ff1770f8868ef1c"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#a168d14b0e18a50b50ff1770f8868ef1c">operator[]</a> (T input_value) const override</td></tr>
<tr class="memdesc:a168d14b0e18a50b50ff1770f8868ef1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read access to the specified element.  <a href="#a168d14b0e18a50b50ff1770f8868ef1c">More...</a><br /></td></tr>
<tr class="separator:a168d14b0e18a50b50ff1770f8868ef1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a60949b33f25c788cdbe21c9fab046a"><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#a5a60949b33f25c788cdbe21c9fab046a">operator[]</a> (T input_value) override</td></tr>
<tr class="memdesc:a5a60949b33f25c788cdbe21c9fab046a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write access to the specified element.  <a href="#a5a60949b33f25c788cdbe21c9fab046a">More...</a><br /></td></tr>
<tr class="separator:a5a60949b33f25c788cdbe21c9fab046a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classarm__compute_1_1test_1_1_i_lut_accessor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1test_1_1_i_lut_accessor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml">ILutAccessor&lt; T &gt;</a></td></tr>
<tr class="memitem:aadfb51f4d2d50a259ae739bdd71f91fd inherit pub_methods_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml#aadfb51f4d2d50a259ae739bdd71f91fd">~ILutAccessor</a> ()=default</td></tr>
<tr class="memdesc:aadfb51f4d2d50a259ae739bdd71f91fd inherit pub_methods_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pure virtual destructor.  <a href="#aadfb51f4d2d50a259ae739bdd71f91fd">More...</a><br /></td></tr>
<tr class="separator:aadfb51f4d2d50a259ae739bdd71f91fd inherit pub_methods_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classarm__compute_1_1test_1_1_i_lut_accessor"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarm__compute_1_1test_1_1_i_lut_accessor')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml">ILutAccessor&lt; T &gt;</a></td></tr>
<tr class="memitem:afb9ded5f49336ae503bb9f2035ea902b inherit pub_types_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a> = T</td></tr>
<tr class="memdesc:afb9ded5f49336ae503bb9f2035ea902b inherit pub_types_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a> value type.  <a href="#afb9ded5f49336ae503bb9f2035ea902b">More...</a><br /></td></tr>
<tr class="separator:afb9ded5f49336ae503bb9f2035ea902b inherit pub_types_classarm__compute_1_1test_1_1_i_lut_accessor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class arm_compute::test::LutAccessor&lt; T &gt;</h3>

<p><a class="el" href="classarm__compute_1_1test_1_1_accessor.xhtml" title="Accessor implementation for Tensor objects. ">Accessor</a> implementation for <a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> objects. </p>

<p>Definition at line <a class="el" href="_lut_accessor_8h_source.xhtml#l00037">37</a> of file <a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae99963d5a188fc22b0943680f9d463ad"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> &amp;&#160;</td>
          <td class="paramname"><em>lut</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create an accessor for the given <code><a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a></code>. </p>

<p>Definition at line <a class="el" href="_lut_accessor_8h_source.xhtml#l00042">42</a> of file <a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>.</p>

<p>References <a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aab55c8a099bd3c9c705c22154375a1a2">LutAccessor&lt; T &gt;::operator=()</a>.</p>
<div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        : _lut{ lut }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    }</div></div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac8490a0e13403aa46250b736a3a9b1cc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copy constructed. </p>

</div>
</div>
<a class="anchor" id="a1963ce09163dcfe7437106500bc2482d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allow instances of this class to be move constructed. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aedcfdd4c3b92fe0d63b5463c7ad1d21e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int num_elements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Number of elements of the <a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>the number of elements. </dd></dl>

<p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml#a7596bc2928432a0ac2271bc9184d692e">ILutAccessor&lt; T &gt;</a>.</p>

<p>Definition at line <a class="el" href="_lut_accessor_8h_source.xhtml#l00056">56</a> of file <a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>.</p>

<p>References <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a7a826fbb4f639c556352d1ede69187d7">ILut::num_elements()</a>.</p>

<p>Referenced by <a class="el" href="_lut_accessor_8h_source.xhtml#l00061">LutAccessor&lt; T &gt;::operator[]()</a>.</p>
<div class="fragment"><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    {</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">return</span> _lut.<a class="code" href="classarm__compute_1_1_i_lut.xhtml#a7a826fbb4f639c556352d1ede69187d7">num_elements</a>();</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div><div class="ttc" id="classarm__compute_1_1_i_lut_xhtml_a7a826fbb4f639c556352d1ede69187d7"><div class="ttname"><a href="classarm__compute_1_1_i_lut.xhtml#a7a826fbb4f639c556352d1ede69187d7">arm_compute::ILut::num_elements</a></div><div class="ttdeci">virtual size_t num_elements() const =0</div><div class="ttdoc">Returns the total number of elements in the LUT. </div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aab55c8a099bd3c9c705c22154375a1a2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copied. </p>

<p>Referenced by <a class="el" href="_lut_accessor_8h_source.xhtml#l00042">LutAccessor&lt; T &gt;::LutAccessor()</a>.</p>

</div>
</div>
<a class="anchor" id="a245b2a5255f1aa5d34a026cf7316d931"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allow instances of this class to be moved. </p>

</div>
</div>
<a class="anchor" id="a168d14b0e18a50b50ff1770f8868ef1c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>input_value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read access to the specified element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input_value</td><td><a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a> input value, from numericlimits&lt;T&gt;:min to numericlimits&lt;T&gt;:max.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Output desired element. </dd></dl>

<p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml#a579b149d2df097ab5fecba3c6dedebd8">ILutAccessor&lt; T &gt;</a>.</p>

<p>Definition at line <a class="el" href="_lut_accessor_8h_source.xhtml#l00061">61</a> of file <a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>.</p>

<p>References <a class="el" href="_error_8h_source.xhtml#l00260">ARM_COMPUTE_ERROR</a>, <a class="el" href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">ILut::buffer()</a>, <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">ILut::index_offset()</a>, and <a class="el" href="_lut_accessor_8h_source.xhtml#l00056">LutAccessor&lt; T &gt;::num_elements()</a>.</p>
<div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">auto</span>    lut        = <span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(_lut.<a class="code" href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">buffer</a>());</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        int32_t real_index = _lut.<a class="code" href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">index_offset</a>() + <span class="keyword">static_cast&lt;</span>int32_t<span class="keyword">&gt;</span>(input_value);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">if</span>(0 &lt;= real_index &amp;&amp; real_index &lt; <a class="code" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a>())</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">return</span> lut[real_index];</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a>(<span class="stringliteral">&quot;Error index not in range.&quot;</span>);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div><div class="ttc" id="_error_8h_xhtml_a05b19c75afe9c24200a62b9724734bbd"><div class="ttname"><a href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR(...)</div><div class="ttdoc">Print the given message then throw an std::runtime_error. </div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00260">Error.h:260</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1_lut_accessor_xhtml_aedcfdd4c3b92fe0d63b5463c7ad1d21e"><div class="ttname"><a href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">arm_compute::test::LutAccessor::num_elements</a></div><div class="ttdeci">int num_elements() const override</div><div class="ttdoc">Number of elements of the Lut. </div><div class="ttdef"><b>Definition:</b> <a href="_lut_accessor_8h_source.xhtml#l00056">LutAccessor.h:56</a></div></div>
<div class="ttc" id="classarm__compute_1_1_i_lut_xhtml_a786de36dda3773c5fb35d6700e64621e"><div class="ttname"><a href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">arm_compute::ILut::index_offset</a></div><div class="ttdeci">virtual uint32_t index_offset() const =0</div><div class="ttdoc">Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...</div></div>
<div class="ttc" id="classarm__compute_1_1_i_lut_xhtml_ab988210662dbd3bf32fd563c7dd1bdbf"><div class="ttname"><a href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">arm_compute::ILut::buffer</a></div><div class="ttdeci">virtual uint8_t * buffer() const =0</div><div class="ttdoc">Returns a pointer to the start of the LUT. </div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a5a60949b33f25c788cdbe21c9fab046a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>input_value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write access to the specified element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input_value</td><td><a class="el" href="classarm__compute_1_1_lut.xhtml" title="Basic implementation of the LUT interface. ">Lut</a> input value, from numericlimits&lt;T&gt;:min to numericlimits&lt;T&gt;:max.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Output desired element. </dd></dl>

<p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_lut_accessor.xhtml#ad8be979742bb6772dd601fe23ad44dc5">ILutAccessor&lt; T &gt;</a>.</p>

<p>Definition at line <a class="el" href="_lut_accessor_8h_source.xhtml#l00073">73</a> of file <a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a>.</p>

<p>References <a class="el" href="_error_8h_source.xhtml#l00260">ARM_COMPUTE_ERROR</a>, <a class="el" href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">ILut::buffer()</a>, <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">ILut::index_offset()</a>, and <a class="el" href="_lut_accessor_8h_source.xhtml#l00056">LutAccessor&lt; T &gt;::num_elements()</a>.</p>
<div class="fragment"><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">auto</span>    lut        = <span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(_lut.<a class="code" href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">buffer</a>());</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        int32_t real_index = _lut.<a class="code" href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">index_offset</a>() + <span class="keyword">static_cast&lt;</span>int32_t<span class="keyword">&gt;</span>(input_value);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">if</span>(0 &lt;= real_index &amp;&amp; real_index &lt; <a class="code" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a>())</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        {</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            <span class="keywordflow">return</span> lut[real_index];</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <a class="code" href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a>(<span class="stringliteral">&quot;Error index not in range.&quot;</span>);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div><div class="ttc" id="_error_8h_xhtml_a05b19c75afe9c24200a62b9724734bbd"><div class="ttname"><a href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR(...)</div><div class="ttdoc">Print the given message then throw an std::runtime_error. </div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00260">Error.h:260</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1_lut_accessor_xhtml_aedcfdd4c3b92fe0d63b5463c7ad1d21e"><div class="ttname"><a href="classarm__compute_1_1test_1_1_lut_accessor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">arm_compute::test::LutAccessor::num_elements</a></div><div class="ttdeci">int num_elements() const override</div><div class="ttdoc">Number of elements of the Lut. </div><div class="ttdef"><b>Definition:</b> <a href="_lut_accessor_8h_source.xhtml#l00056">LutAccessor.h:56</a></div></div>
<div class="ttc" id="classarm__compute_1_1_i_lut_xhtml_a786de36dda3773c5fb35d6700e64621e"><div class="ttname"><a href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">arm_compute::ILut::index_offset</a></div><div class="ttdeci">virtual uint32_t index_offset() const =0</div><div class="ttdoc">Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...</div></div>
<div class="ttc" id="classarm__compute_1_1_i_lut_xhtml_ab988210662dbd3bf32fd563c7dd1bdbf"><div class="ttname"><a href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">arm_compute::ILut::buffer</a></div><div class="ttdeci">virtual uint8_t * buffer() const =0</div><div class="ttdoc">Returns a pointer to the start of the LUT. </div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>tests/NEON/<a class="el" href="_lut_accessor_8h_source.xhtml">LutAccessor.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1_lut_accessor.xhtml">LutAccessor</a></li>
    <li class="footer">Generated on Wed May 23 2018 11:36:44 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
